<center><table width="100%" border="1">
<tr>
<td colspan=3 >
<?php echo "Report Time: $date";?>
</td>
</tr>

<?php
foreach($Report as $ShowReport)
{
	$Country=$ShowReport['sitecc'];
	?>
	<tr class="classmenu">
	<td colspan="3" >
	<?php echo $Country; ?>
	</td>
	
	</tr>
<tr class="classtopmenu">
<td>
Country
</td>
<td>
Sell
</td>
<td>
Refund
</td>
</tr>
<?php 
$Count=count($ShowReport["$Country"]['country']);
	for($i=0;$i<$Count;$i++)
	{
		?>
		<tr>
		<td>
		<?php echo $ShowReport["$Country"]['country'][$i];?>
		</td>
		<td>
		<?php echo $ShowReport["$Country"]['sell'][$i];?>
		</td>
		<td>
		<?php if(empty($ShowReport["$Country"]['die'][$i]))
		{
				echo 0;
		}
		else 
		{
			echo $ShowReport["$Country"]['die'][$i];
		}
		
		?>
		</td>
		</tr>
		<?php 
	}
 
}
?>
</table>
</center>